<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // const fn = () => {
        //     console.log(123);
        // }

        // fn();
        // const sum = (a, b) => a + b;
        // console.log(sum(1, 2));
        // const fn = v => {
        //     alert(v)
        // };
        // fn(11);
        function fn() {
            console.log(this);
            return () => {
                console.log(this);
            }
        }
        const obj = {
            name: 'zhangsan'
        };
        var a = fn.call(obj);
        a();
    </script>
</body>

</html>